<?php


namespace app\common\model;

use think\Model;

class QuickShield extends Model
{
    protected $pk = 'quick_id';
    protected $table = 'quick_shield';


    public function getLibIdsAttr($value, $data)
    {
        return array_filter(explode(',', $data['iplib_ids']));
    }

    public function getHoursAttr($value, $data)
    {
        return array_filter(explode(',', $data['open_hour']));
    }
}